<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<!-- meta -->
<meta name="keywords" content="">
<meta name="description" content="">
<!-- /meta -->
<title>フロント表示一覧</title>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/base.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/headerfooter.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/ulol.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/arrow.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/elements.css">
<!-- admin -->
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/base_admin.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/elements_admin.css">
<!-- /admin -->
<script type="text/javascript" src="<%= request.getContextPath() %>/common/js/library.js"></script>
<script type="text/javascript">

	//削除
	function deleteData(displayId) {

		// 「OK」時の処理開始 ＋ 確認ダイアログの表示
		if(window.confirm('削除しますがよろしいですか？')){


			document.getElementById("displayId").value = displayId;
			frontListForm.action ='<%= request.getContextPath() %>/outputfront/front-del';
			frontListForm.submit();

		}

	}

	function orderDown(displayId) {
		document.getElementById("orderChangeId").value = displayId;
		document.getElementById("displayOrderCmd").value = "1";

		frontListForm.action ='<%= request.getContextPath() %>/outputfront/front-changeOrder';
		frontListForm.submit();
	}

	function orderUp(displayId) {

		document.getElementById("orderChangeId").value = displayId;
		document.getElementById("displayOrderCmd").value = "0";

		frontListForm.action ='<%= request.getContextPath() %>/outputfront/front-changeOrder';
		frontListForm.submit();

	}

</script>



<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/for_winie3.css">

</head>
<body id="dch">
<!-- === headerArea === -->
<div id="headerArea">
<a name="pageTop" id="pageTop"></a>
<jsp:include page="/common/include/header.jsp" />
</div><!-- === /headerArea === -->
<!-- === mainArea === -->
<div id="mainArea">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<td width="140" id="leftArea">
			<jsp:include page="output_menu.jsp" />
			<!-- /listA01 -->
		<!-- === /leftArea === -->
		</td>
		<td width="20"><img src="<%= request.getContextPath() %>/common/images/spacer.gif" width="20" height="4" border="0" alt=""></td>
		<td id="contentsArea">
		<!-- === contentsArea === -->
			<!-- headingLv01Block -->
			<div class="headingLv01Block">
				<!-- headingLv01 -->
				<h1>フロント表示一覧</h1>
				<!-- /headingLv01 -->
				<!-- lead -->
				<div class="lead">
				</div>
				<!-- /lead -->
			</div>
			<!-- /headingLv01Block -->
			<!-- columnB01 -->
			<div class="columnB01">

			</div>
			<!-- /columnB01 -->
			<!-- headingLv02 -->
			<div class="headingLv02">
			<table border="0" cellspacing="0" cellpadding="5" width="558">
				<tr>
					<td><p><em>フロント表示一覧<br></em></p></td>
				</tr>
			</table>
			</div>
			<!-- /headingLv02 -->
			<form action="#" id = "frontListForm" name = "frontListForm">
			<s:token/>
			<s:hidden name="displayId" id = "displayId"/>
			<s:hidden name="displayOrderCmd" id = "displayOrderCmd"/>
			<s:hidden name="orderChangeId" id = "orderChangeId"/>
			<!-- tableBlock -->
			<div class="tableBlock">
				<!-- tableBtn -->
				<!-- /tableBtn -->
				<!-- tableA01 -->
				<div class="tableBtn">
				<p><input type="button" value="新規追加する" onclick="location.href='<s:url value="/outputfront/front-add"><s:param name="keySchemaid" value="keySchemaid"/><s:param name="displaySort" value="displaySort"/></s:url>'"></p>
				</div>
				<div class="tableA01">
				<table border="1" cellspacing="0" cellpadding="5">
					<tr>
						<th class="lv01B">表示順番</th>
						<th class="lv01B">処理</th>
						<th class="lv01B">表示タイトル</th>
						<th class="lv01B">表示順番変更</th>
					</tr>
					<s:iterator value="dataDisplaysList" status="sta">
					<tr>
						<td><s:property value="%{#sta.index + 1}"/></td>
						<td>
							<input type="button" value="編集" onclick="location.href='<s:url value="/outputfront/front-edit"><s:param name="keySchemaid" value="keySchemaid"/><s:param name="displayId" value="id"/><s:param name="displaySort" value="displaySort"/></s:url>'">
							<input type="button" value="削除" onclick="deleteData('<s:property value="id"/>')">
						</td>
						<td><s:property value="name"/></td>
						<td align="center">
							<s:if test='%{#sta.first}'>
								<a href="javascript:void(0)" onclick="orderDown('<s:property value="id"/>')"><img src="<%= request.getContextPath() %>/common/images/down.gif" width="15" height="15" border="0" alt=""></a>
							</s:if>
							<s:elseif test='%{#sta.last}'>
								<a href="javascript:void(0)" onclick="orderUp('<s:property value="id"/>')"><img src="<%= request.getContextPath() %>/common/images/up.gif" width="15" height="15" border="0" alt=""></a>
							</s:elseif>
							<s:else>
								<a href="javascript:void(0)" onclick="orderUp('<s:property value="id"/>')"><img src="<%= request.getContextPath() %>/common/images/up.gif" width="15" height="15" border="0" alt=""></a>
								<a href="javascript:void(0)" onclick="orderDown('<s:property value="id"/>')"><img src="<%= request.getContextPath() %>/common/images/down.gif" width="15" height="15" border="0" alt=""></a>
							</s:else>
						</td>
					</tr>
					</s:iterator>
				</table>
				</div>
				<div class="tableBtn">
				<p><input type="button" value="新規追加する" onclick="location.href='<s:url value="/outputfront/front-add"><s:param name="keySchemaid" value="keySchemaid"/><s:param name="displaySort" value="displaySort"/></s:url>'"></p>
				</div>
				<!-- /tableA01 -->
				<!-- /tableBtn -->
			</div>
			<!-- /tableBlock -->
			<!-- pageNaviC01 -->
			<div class="pageNaviC01">
			</div>
			<!-- /pageNaviC01 -->
			</form>
		<!-- === /contentsArea === -->
		</td>
		<td width="16"><img src="<%= request.getContextPath() %>/common/images/spacer.gif" width="16" height="4" border="0" alt=""></td>
	</tr>
</table>
</div><!-- === /mainArea === -->
<!-- === footerArea === -->
<div id="footerArea">
<jsp:include page="/common/include/footer.jsp" />
</div><!-- === /footerArea === -->
</body>
</html>
<!-- System Architect is COOBA Corp
	Copyright 2010 COOBA Corp All rights reserved -->